package com.globant;

public class LengthValidator {

	
	
	/**
	 * Validates the length of a given String 
	 * 
	 * 
	 * @param String: field2Validate
	 * @param int: maxLenght
	 * @param int: minLenght
	 * @return true if the given String has between minLenght and maxLenght characters, false if it does not
	 */	
	public boolean validateLength(int minLenght,String field2Validate, int maxLenght){
		if (field2Validate.length()>= minLenght && field2Validate.length()<=maxLenght){
		return true;
		}else{
			return false;
		}
	}
}
